import Vue from 'vue'
Vue.api = Vue.prototype.$api = {
  /**
   *上传获取签名
   */
  getUploadSign: `/fileApi/getUploadSign.html`,
  wxAuthURL: `h5/sdkConfig.html`, // 微信授权

  /**
   * 用户中心
   */
  login: `/account/login.html`, // 用户登录
  register: `/account/register.html`,  // 用户注册
  sendValidCode: `/account/sendMessageValidateCode.html`, // 发送手机验证码
  updatePwd: `/account/updatePwd.html`, // 忘记密码
  resetPwd: `/account/updatePwdByUser.html`, // 修改密码
  showRenterInfo: `/account/showRenterInfo.html`, // 获取租客相关信息
  myHouseAssess: `/account/myHouseAssess.html`, // 我的评价
  feedback: `/account/feedbackByUser.html`, // 反馈
  getdetectinfo: `/faceautonym/getUserdetectInfo.html`, // 验证刷脸信息
  /**
   * 用户中心-房东
   */
  myHouseList: `/account/myHouseList.html`, // 我的房源
  myRenters: `/account/myTenantlist.html`, // 我的租客
  myOrderList: `/account/myOrderList.html`, // 我的房租订单
  myNewsForLandlord: `/account/myNewsForLandlord.html`, // 消息列表接口
  detailsOfContact: `/account/detailsOfContact.html`, // 房东查看租客账单详情接口
  contractList: `/account/contractList.html`, // 出租合同/ 1为待已签约，2为已签约
  // renterAppointmentList: `/account/renterAppointmentList.html`, // 租客预约列表（接口名重复 先注释之前的这个接口）
  renterAppointmentList: `/account/renterAppointmentList.html`, // 房东同意签约创建合同
  putawayMyHouse: `/account/putawayMyHouse.html`, // 上架我的房源接口
  soldOutMyHouse: `/account/soldOutMyHouse.html`, // 下架我的房源接口
  updateMyHouse: `/account/updateMyHouse.html`, // 更新我的房源接口
  getMyHouseById: `/account/getMyHouseById.html`, // 编辑我的房源获取房源信息
  updateRenterAppointment: `/newAccount/updateRenterAppointment.html`, // 同意拒绝预约
  queryLinkInfoCount: `/account/queryLinkInfoCount.html`, // 关注房源，预约清单，看房日程
  createContract: `/contract/createContract.html`, // 创建合同
  reletContract: `/contract/reletContract.html`, // 续租合同
  cancelOrder: `/order/cancelOrder.html`, // 取消订单
  queryOrderDetail4Relet: `/order/queryOrderDetail4Relet.html`, // 根据订单id获取续租订单详情
  createContract4Apartment: `/contract/createContract4Apartment.html`, // 房东同意签约创建合同
  // new
  queryHouseNewContractUserByType: '/newContract/queryHouseNewContractUserByType.html', // 房东获取合同信息列表
  queryNewContractHT: '/newContract/queryNewContractHT.html',   // 房东-房管合同详情
  getRenterList: 'newContract/getRenterList.html', // 查询租客列表
  updateNewContractByStatus: '/newContract/updateNewContractByStatus.html', // 确认合同
  confirmToApplyFor: 'newContract/confirmToApplyFor.html',   // 房东确认退租合同申请
  landlordOrders: '/order/landlordOrders.html', // 房管订单列表
  /**
   * 用户中心-租客
   */
  myFollowHouseForRenter: `/account/myFollowHouseForRenter.html`,  // 我关注的房源
  concernHouse: `/account/concernHouse.html`,  // 关注房源
  cancleConcernHouse: `/account/cancleConcernHouse.html`,  // 取消关注房源
  myReservationForRenter: `/account/myReservationForRenter.html`,  // 预约清单
  cancelHouseAppointment: `account/cancelHouseAppointment.html`,  // 取消预约看房
  myHouseWaitSchedule: `/account/myHouseWaitSchedule.html`,  // 我的待看房日程
  myHouseEndSchedule: `/account/myHouseEndSchedule.html`,  // 我的已看房日程
  myContractForRenter: `/account/myContractForRenter.html`,  // 我的合同列表
  insertContractTransfer: `contract/insertContractTransfer.html`, // 交房确认
  myNewsForRenter: `/account/myNewsForRenter.html`, // 我的消息（租客）
  readRenterMessageInfo: `/account/readRenterMessageInfo.html`, // 查看消息（修改消息已读状态）
  renterOrders: `/order/renterOrders.html`, // 我的订单(租客) 新接口
  myRentBillForRenter: `/account/myRentBillForRenter.html`, // 我的房租账单列表
  buildCard: `/contract/buildCard.html`,    // 生成电子证件二维码
  cancelContract: `contract/cancelContract.html`, // 解除合同
  getFileDetailUri: `contract/getFileDetailUri.html`, // 查看合同详情
  getSignContractUrl: `contract/getSignContractUrl.html`, // 签署合同
  saveContractInfo: `contract/saveContractInfo.html`, // 保存合同
  saveOrder: `/order/saveOrder.html`, // 保存订单
  updateOrderStatus: `/order/updateOrderStatus.html`, // 更新订单状态
  reletOrder: `/order/reletOrder.html`, // 续约
  contractBackup: `/contract/contractBackup.html`, // 合同备案
  signContract4Renter: `contract/signContract4Renter.html`, // 租客签订个人房源合同
  signContract4Apartment: `contract/signContract4Apartment.html`, // 租客签订公寓房源合同
  crateOrder: `/wechatpay/crateOrder.html`, // 创建订单
  queryNewContractByContent: `newContract/queryNewContractByContent.html`, // 生成合同
  insertNewContract: `newContract/insertNewContract.html`, // 确认合同签约
  queryNewContractByRenter: '/newContract/queryNewContractByRenter.html', // 我的合同列表(新)
  applyForCancel: '/newContract/applyForCancel.html', // 退租申请(新)

  /**
   * 出租-发布房源
   */
  checkHouse: `/housePersons/checkHouse.html`, // 验证房源
  addHousePersonsInfo: `/housePersons/addHousePersonsInfo.html`, // 发布房源
  getWgbHousePersonsInfo: `/housePersons/getWgbHousePersonsInfo.html`, // 发布房源
  queryNewContractTemplateByType: '/newContract/queryNewContractTemplateByType.html', // 查询个人合同模板
  postocrinfo: `/faceautonymOcr/postocrinfo.html`, // 预提交ocr数据
  postStartocr: `/faceautonymOcr/postStartocr.html`, // 获取ocr识别签名接口
  // getdetectinfo: `/faceautonymOcr/getdetectinfo.html`, // 获取ocr识别信息
  /**
   * 机构房源
   */
  getApartmentHouseList: `/newHouse/getApartmentHouseList.html`, // 获取机构房源户型房源列表
  hotHouseList: `/account/hotHouseList.html`, // 热门房源列表
  queryHouseApartmentView: `/houseApart/queryHouseApartmentView.html`, // 获取户型房源详细信息
  getApartmentHouseDetail: `/newHouse/getApartmentHouseDetail.html`, // 品牌公寓详情
  getApartmentRoomView: `/houseApart/getApartmentRoomView.html`, // 获取房间详细信息
  queryRoomTypeId: `/houseApart/queryRoomTypeId.html`, // 获取房间列表信息
  addHouseCustomer: `/apartment/addHouseCustomer.html`, // 预定房间获取token
  saveOrder4Apartment: `/order/saveOrder4Apartment.html`, // 品牌公寓保存订单
  /**
   * 公租房
   */
  getHousePublicNewInfos: `/housePublic/getHousePublicNewInfos.html`, // 获取公租房列表
  getHousePublicNewInfoByid: `/housePublic/getHousePublicNewInfoByid.html`, // 获取公租房详情

  /**
   * 个人房源
   */
  getHousePersonsListWithCondition: `/housePersons/getHousePersonsListWithCondition.html`, // 获取房源列表
  getHousePersonsList: `/housePersons/getHousePersonsList.html`, // 获取房源列表
  getHouseAttributeByCodeType: `/housePersons/getHouseAttributeByCodeType.html`, // 获取筛选条件
  getTradingAreas: `/newTradingArea/getTradingAreas.html`, // 根据区域编号查询商圈列表
  getHousePersonsDetailById: `/housePersons/getHousePersonsDetailById.html`, // 获取房源详情
  addHouseAppointment: `/account/addHouseAppointment.html`, // 新增预约
  getUserById: `account/getUserById.html`, // 根据用户id获取用户信息
  queryOrderDetail4Renter: `/account/queryOrderDetail4Renter.html`, // 根据订单id获取订单详情
  getVirtualNum: `/account/getVirtualNum.html`, // 获取虚拟号
  findCityHouseCount: `/housePersons/findCityHouseCount.html`, // 地图找房-按区域查找
  findRegionHouseCount: `/housePersons/findRegionHouseCount.html`, // 地图找房-按商圈查找
  findScopeHouseCount: `/housePersons/findScopeHouseCount.html`, // 地图找房-查找小区
  getHousePersonsListWithConditionMap: `/housePersons/getHousePersonsListWithConditionMap.html`, // 地图找房-获取位置房源
  // findCityHouseCount: `/houseApart/findCityHouseCount.html`, // 地图找房-按区域查找
  // findRegionHouseCount: `/houseApart/findRegionHouseCount.html`, // 地图找房-按商圈查找
  // findScopeHouseCount: `/houseApart/findScopeHouseCount.html`, // 地图找房-查找小区
  getDataWithBuildsName: `/houseBook/getDataWithBuildsName.html`, // 小区详情
  hotSearch: `/housePersons/hotSearch.html`, // 热门搜索
  addHouseComplain: '/houseComplain/addHouseComplain.html', // 添加举报
  gotoSign: '/newContract/gotoSign.html', // 是否可签约
  updateNewContractTemplateByFrequency: '/newContract/updateNewContractTemplateByFrequency.html', // 修改合同模板使用次数

  /**
   * 征信授权
   */
  creditAuthorize: `/account/creditAuthorize.html`, // 用户腾讯信用授权接口
  queryCreditScore: `/account/queryCreditScore.html`, // 信用分查询接口
  completeValidate: `/account/completeValidate.html`, // 信用分查询接口
  /**
   * 资讯
   */
  consult: `housePersons/getDocuments_32898.html`, // 资讯查询接口
  /**
   * 银联相关接口
   */
  queryBankAccount: `/chinapay/getUserBankAccount.html`, // 查询绑定的银行账户
  openAccount: `/chinapay/openAccount.html`, // 绑定的银行账户
  openSms: `/chinapay/openSms.html`, // 发送手机验证码
  consume: 'chinapay/consume.html', // 确认支付
  consumeSms: `chinapay/consumeSms.html`, // 银联确认支付短信
  unBindCard: `/chinapay/unBindCard.html` // 解绑银行账户
}
